import {ipcMain} from 'electron'
import Win from './class/Win.class'
import WinURL from './class/WinURL.class'

export function getMessageWindow() {
    Win.createMessageWindow(WinURL.message)
}

ipcMain.on('min-messageWindow', (event, arg) => {
    Win.messageWindow.minimize()
})

ipcMain.on('max-messageWindow', (event, arg) => {
    Win.messageWindow.maximize()
})

ipcMain.on('close-messageWindow', (event, arg) => {
    Win.messageWindow.close();
})


